home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / editor / cvtmixc.zip / CVT2MIXC.POM < prev    next >
Text File  |  1995-12-08  |  6KB  |  174 lines

  1. ;
  2. ;             ----------------------------------------------------
  3. ;             CVT2MIXC - CONVERT UPPERCASE TEXT FILE TO MIXED CASE
  4. ;             ----------------------------------------------------
  5. ;
  6. ;   Do you ever get documentation or email that looks like the following
  7. ;   example?
  8. ;
  9. ;        HELLO JOHN, I AM WRITING TO SAY HELLO. HOW ARE YOU TODAY?
  10. ;
  11. ;   Text that is all in UPPERCASE is hard to read.  If it's an email letter,
  12. ;   it looks as if the writer is shouting at you.
  13. ;
  14. ;   CVT2MIXC converts uppercase files into mixed case.  It does this in an
  15. ;   "intelligent" manner:  non-words, such as acronyms and serial numbers,
  16. ;   are usually left untouched.
  17. ;
  18. ;   The conversion is not always perfect, so the file may need a bit of
  19. ;   touching up here and there.  However, CVT2MIXC does most of the work
  20. ;   for you.  On large documents, this can save you a lot of time!
  21. ;
  22. ;
  23. ;                     ----------------------------------
  24. ;                     FINE-TUNING THE CONVERSION PROCESS
  25. ;                     ----------------------------------
  26. ;
  27. ;   If you run into frequent "exceptions" (items that are not converted
  28. ;   properly), you can edit the PEF (Properization Exceptions File) with
  29. ;   a standard text editor, so that it includes the proper representation
  30. ;   of specific items.  For example, you might add your name, or your
  31. ;   city, to ensure that these are always correctly interpreted.
  32. ;
  33. ;   This script uses "GENERIC.PEF", which is included in the standard
  34. ;   Parse-O-Matic package.  It defines just a few standard exceptions,
  35. ;   such as Dr. Mr. Mrs. and similar abbreviations.
  36. ;
  37. ;
  38. ;                        ----------------------------
  39. ;                        HOW TO INSTALL THIS POM FILE
  40. ;                        ----------------------------
  41. ;
  42. ;   1.  Obtain a copy of the shareware program Parse-O-Matic from one of the
  43. ;       following sites:
  44. ;
  45. ;       CompuServe -------- PCUTIL/File Utilities, file name PAR.ZIP
  46. ;       World Wide Web ---- http://www.cam.org/~pinnacl
  47. ;       Free Files BBS ---- +1-514-345-8654 (2400 bps or faster)
  48. ;
  49. ;       Parse-O-Matic is a flexible, programmable data tool that is compatible
  50. ;       with DOS, Windows, and OS/2.
  51. ;
  52. ;   2.  Install Parse-O-Matic and place it in your DOS PATH.  (For details
  53. ;       about the PATH command, see your DOS manual.)  The best place to
  54. ;       set your DOS PATH is in your AUTOEXEC.BAT file.
  55. ;
  56. ;   3.  Place this file (CVT2MIXC.POM) in the same directory as Parse-O-Matic.
  57. ;
  58. ;
  59. ;                         --------------------------
  60. ;                         USING CVT2MIXC IN DOS MODE
  61. ;                         --------------------------
  62. ;
  63. ;   At the DOS prompt, enter the command using the following format:
  64. ;
  65. ;   POM CVT2MIXC <input-file> <output-file>
  66. ;
  67. ;   For example:
  68. ;
  69. ;   POM CVT2MIXC C:\TEMP\MAIL.TXT C:\TEMP\FIXED.TXT
  70. ;
  71. ;   This will read the file MAIL.TXT and place the output in FIXED.TXT.
  72. ;
  73. ;
  74. ;                       -------------------------------
  75. ;                       USING CVT2MIXC UNDER WINDOWS 95
  76. ;                       -------------------------------
  77. ;
  78. ;                             *** PREPARATION ***
  79. ;
  80. ;   1.  Create a directory named TEST on your C: drive.  This will be the
  81. ;       working directory.  (If you want to use a different directory name,
  82. ;       edit the batch file CVT2MIXC.BAT accordingly.)
  83. ;
  84. ;   2.  Create a Win95 shortcut to CVT2MIXC.BAT, as follows:
  85. ;       Cmd line:       Enter the full path to CVT2MIXC.BAT
  86. ;                       For example:  C:\PARSE\CVT2MIXC.BAT
  87. ;       Working:        Leave empty
  88. ;       Batch file:     Leave empty
  89. ;       Shortcut key:   Leave empty
  90. ;       Close on Exit:  Click here to put a check-mark
  91. ;
  92. ;   3.  If you wish, you can click on the "Change Icon" button and assign the 
  93. ;       icon file we have provided in the CVT2MIXC package.  The icon file is
  94. ;       named CVT2MIXC.ICO.
  95. ;
  96. ;                              *** OPERATION ***
  97. ;
  98. ;   1.  When you get a file entirely in uppercase, save a copy of it to
  99. ;       C:\TEST\CVT.TXT.
  100. ;
  101. ;   2.  Run the shortcut.  The file C:\TEST\CVT.TXT will then contain
  102. ;       the converted text.
  103. ;
  104. ;
  105. ;                               ------------------
  106. ;                               SAMPLE APPLICATION
  107. ;                               ------------------
  108. ;
  109. ;   A sample run of this script is included in the batch file SHOWMIXC.BAT.
  110. ;   To run it, make sure that Parse-O-Matic has been installed (as explained
  111. ;   earlier), then run SHOWMIXC.BAT (either from Windows, or from the DOS
  112. ;   prompt). This will read the input file CVT2MIXC.INP and generate the
  113. ;   output file CVT2MIXC.OUT.  You can then view the output file with a file
  114. ;   viewer (such as Pinnacle Software's SEE utility), or by loading it into
  115. ;   a generic text editor.
  116. ;
  117. ;
  118. ;                                  ------------
  119. ;                                  DISTRIBUTION
  120. ;                                  ------------
  121. ;
  122. ;   This POM file is Copyright (C) 1995 by Pinnacle Software (Montreal).  It
  123. ;   is freeware, which means that you can distribute complete and unaltered
  124. ;   copies without royalties.
  125. ;
  126. ;
  127. ;                               -----------------
  128. ;                               TECHNICAL SUPPORT
  129. ;                               -----------------
  130. ;
  131. ;   If you have any questions about Parse-O-Matic or any of our other products,
  132. ;   please send email to pinnacl@cam.org, or phone us at +1-514-345-9578.  We
  133. ;   also invite you to visit our Web site (http://www.cam.org/~pinnacl).
  134. ;
  135. ;
  136. ;------------------------------------------------------------------------------
  137. ;
  138. ;   Allow null lines
  139. ;
  140. MINLEN   "0"
  141. ;
  142. ;   Save the line length
  143. ;
  144. SET      lastlen = len
  145. SETLEN   len $FLINE
  146. ;
  147. ;   Fix up the line
  148. ;
  149. BEGIN    lastlen = "0"
  150.   PROPER   $FLINE "IUS" "GENERIC.PEF"
  151. ELSE
  152.   PROPER   $FLINE "IS" "GENERIC.PEF"
  153. END
  154. ;
  155. ;   Fix contractions
  156. ;
  157. CHANGE     $FLINE "'VE"  "'ve"
  158. CHANGE     $FLINE "'D"  "'d"
  159. CHANGE     $FLINE "'S"  "'s"
  160. CHANGE     $FLINE "'T"  "'t"
  161. ;
  162. ;   Handle hanging sentences
  163. ;
  164. BEGIN    len <> "0"
  165.   COPY     endchar $FLINE len len
  166.   IF       endchar = "." THEN len = "0"
  167.   IF       endchar = "!" THEN len = "0"
  168.   IF       endchar = "?" THEN len = "0"
  169. END
  170. ;
  171. ;   Output the line
  172. ;
  173. OUTEND   |{$FLINE}
  174.